package com.acme.bankapp.domain.bank;
import com.acme.bankapp.service.bank.ClientRegistrationListener;
import com.acme.bankapp.service.bank.EmailNotificationListener;
import com.acme.bankapp.service.bank.PrintClientListener;
public class Bank {
	private int i;
	private Client masclient[]=new Client[10];
	private ClientRegistrationListener listener[]={new PrintClientListener(),new EmailNotificationListener()};
	public void addclient(Client cl){
		masclient[i]=cl;
		i++;
		for(ClientRegistrationListener creg:listener){
			creg.onClientAdded(cl);
		}
	}
	public Client[] getClients(){
		return masclient;
	}
	public Client getClient(int i){
		return masclient[i];
	}
}
